<!DOCTYPE html>
<html>
  <head>
    <meta charset='utf-8'>
    <meta content='width=device-width, initial-scale=1.0' name='viewport'>
    <meta content='' name='description'>
    <meta content='Nils Nordman' name='author'>
    <link href='/images/howl.png' rel='shortcut icon'>
    <title>Howl :: howl.ui.NotificationWidget</title>
    <link href="/stylesheets/bootstrap.min.css" media="screen" rel="stylesheet" type="text/css" />
    <link href="/stylesheets/syntax.css" media="screen" rel="stylesheet" type="text/css" />
    <link href="/stylesheets/howl.css" media="screen" rel="stylesheet" type="text/css" />
    <link href='//fonts.googleapis.com/css?family=Josefin+Slab' rel='stylesheet' type='text/css'>
    <link href='//fonts.googleapis.com/css?family=Open+Sans+Condensed:700' rel='stylesheet' type='text/css'>
  </head>
  <body class='doc doc_api doc_api_ui doc_api_ui_notification_widget'>
    <div class='container'>
      <div class='masthead'>
        <ul class='nav nav-pills'>
          <li>
            <a href='/'>
              <span class='glyphicon glyphicon-home'></span>
              Home
            </a>
          </li>
          <li>
            <a href='/doc/'>
              <span class='glyphicon glyphicon-book'></span>
              Documentation
            </a>
          </li>
          <li>
            <a href='/blog/'>
              <span class='glyphicon glyphicon-bullhorn'></span>
              Blog
            </a>
          </li>
          <li>
            <a href='/contact.html'>
              <span class='glyphicon glyphicon-inbox'></span>
              Contact
            </a>
          </li>
        </ul>
      </div>
      <ol class="breadcrumb"><li><a href="/">Home</a></li><li><a href='../../'>Howl 0.3 Documentation</a></li><li>Api</li><li>Ui</li><li>howl.ui.NotificationWidget</li></ol>
      <h1 id="howl.ui.notificationwidget">howl.ui.NotificationWidget</h1>    <div class="toc">
      <div class="toc-title">
        <span>howl.ui.NotificationWidget</span>
      </div>
      <div class="toc-entries">
<div class="toc-group">
<a href="#overview" class="toc-group-header overview">Overview</a>
</div>
<div class="toc-group">
<a href="#constructor" class="toc-group-header constructor">Constructor</a>
<li class=""><a href="#notificationwidget">NotificationWidget </a></li>
</div>
<div class="toc-group">
<a href="#methods" class="toc-group-header methods">Methods</a>
<li class=""><a href="#caption">caption </a></li>
<li class=""><a href="#clear">clear </a></li>
<li class=""><a href="#error">error </a></li>
<li class=""><a href="#hide">hide </a></li>
<li class=""><a href="#info">info </a></li>
<li class=""><a href="#show">show </a></li>
<li class=""><a href="#warning">warning </a></li>
</div>
</div>
</div>
&#x000A;&#x000A;<h2 id="overview">Overview</h2>&#x000A;&#x000A;<p>NotificationWidget is a widget that displays a notification message. A&#x000A;NotificationWidget is primarily used to display a message attached to the&#x000A;<a href="command_line.html">command line</a>.</p>&#x000A;&#x000A;<p>The height of the widget auto adjusts to fit the displayed message.</p>&#x000A;&#x000A;<hr>&#x000A;&#x000A;<p><em>See also</em>:</p>&#x000A;&#x000A;<ul>&#x000A;<li>The <a href="command_line.html">CommandLine</a> API</li>&#x000A;</ul>&#x000A;&#x000A;<h2 id="constructor">Constructor</h2>&#x000A;&#x000A;<h3 id="notificationwidget">NotificationWidget <span class="arg-list">()</span></h3>&#x000A;&#x000A;<p>Creates a new NotificationWidget.</p>&#x000A;&#x000A;<h2 id="methods">Methods</h2>&#x000A;&#x000A;<h3 id="caption">caption <span class="arg-list">(text)</span></h3>&#x000A;&#x000A;<p>Displays an unstyled message.</p>&#x000A;&#x000A;<h3 id="clear">clear <span class="arg-list">()</span></h3>&#x000A;&#x000A;<p>Clears any displayed message.</p>&#x000A;&#x000A;<h3 id="error">error <span class="arg-list">(text)</span></h3>&#x000A;&#x000A;<p>Displays an error message.</p>&#x000A;&#x000A;<h3 id="hide">hide <span class="arg-list">()</span></h3>&#x000A;&#x000A;<p>Hides the widget.</p>&#x000A;&#x000A;<h3 id="info">info <span class="arg-list">(text)</span></h3>&#x000A;&#x000A;<p>Displays an informative message.</p>&#x000A;&#x000A;<h3 id="show">show <span class="arg-list">()</span></h3>&#x000A;&#x000A;<p>Shows the widget.</p>&#x000A;&#x000A;<h3 id="warning">warning <span class="arg-list">(text)</span></h3>&#x000A;&#x000A;<p>Displays a warning message.</p>
      <div class='footer text-muted'>
        <a href='/'>
          <img width="50" height="50" class="footer-logo" src="/images/howl.png" />
        </a>
        <div class='footer-follow'>
          <p>
            <a class='twitter-follow-button' data-lang='en' data-show-count='false' href='https://twitter.com/howleditor' rel='me'>
              Follow @howleditor
            </a>
          </p>
          <p>
            <a class='twitter-share-button' data-count='none' data-hashtags='howleditor' data-lang='en' data-text='The Howl Editor, a general purpose, light-weight customizable editor.' data-url='http://howl.io' href='https://twitter.com/share'>
              Tweet
            </a>
          </p>
        </div>
        <div class='footer-blurb'>
          <div>The Howl editor.</div>
          <div>
            Copyright 2012-2015
            <a class='alert-link' href='https://github.com/nilnor/howl/contributors'>
              The Howl Developers.
            </a>
          </div>
        </div>
      </div>
    </div>
    <script>
      <!-- / GA -->
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
      ga('create', 'UA-45283282-1', 'howl.io');
      ga('send', 'pageview');
      <!-- / Twitter -->
      !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];
      if(!d.getElementById(id)){js=d.createElement(s);js.id=id;
      js.src="//platform.twitter.com/widgets.js";
      fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
    </script>
  </body>
</html>
